<?php
/**
 * Created by PhpStorm.
 * User: cwj
 * Date: 2017-09-28 0028
 * Time: 15:07
 */

namespace App\Http\Controllers\Home;

use Illuminate\Support\Facades\Session;
use Illuminate\Http\Request;

class UserController extends CommonController{
    public function index(Request $request){
        if(!Session::get('user')){
            echo "<script>alert('请先登录');location.href='login'</script>";
        }else{

        }
    }
    //跳转地址
    public function login(){
        return Redirect::to('home/login/login');
    }
    //完善个人信息
    public function info(Request $request){
        if($request->isMethod("POST")){
            echo 000;
        }else{
            return view('home/user/info');
        }
    }
}